<?php

namespace plugin\enterprise\app\controller;

use plugin\enterprise\app\Enterprise;
use plugin\enterprise\app\service\EnterpriseMenuService;

class EnterpriseMenuController extends \plugin\owladmin\app\controller\AdminMenuController
{
    protected string $serviceName = EnterpriseMenuService::class;

    public function __construct()
    {
        parent::__construct();
        $this->adminPrefix = Enterprise::config('enterprise.route.prefix');
        $this->queryPath = str_replace($this->adminPrefix . '/', '', request()->path());
    }
}